var Emitter=require('events');
// var Emitter=events.EventEmitter
var util=require('util')

function Radio(name,fm){
    Emitter.call(this)
    this.name=name;
    this.fm=fm
}

util.inherits(Radio,Emitter);

Radio.prototype.play=function(){
    console.log(this.name+this.fm+" opend")
}
Radio.prototype.stop=function(){
    console.log(this.name+this.fm+" closed")
}

module.exports=Radio